
import express from 'express'

import ResponseHelper from '../ResponseHelper';
import TestPaperService from '../../services/TestPaperService';
import StudentPaperService from '../../services/StudentPaperService';

const router = express.Router();

router.post('/examPaper', async (req, res, next) => {
  const body = req.body || {}

  try {
    const result = await StudentPaperService.create(body)
    ResponseHelper.send(result, res)
  } catch (err) {
    console.log(err);

    next()
  }




})

router.get("/stati/examinee", async (req, res, next) => {
  try {
    const result = await StudentPaperService.statiTest()
    ResponseHelper.send(result, res)
  } catch (err) {
    next()
  }

})

export default router